#!/bin/sh

# ���ﾵ�����Դ
yum -y install wget
 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

yum clean all
yum makecache

# step 1: ��װ��Ҫ��һЩϵͳ����
yum install -y yum-utils device-mapper-persistent-data lvm2
# Step 2: ������Դ��Ϣ
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
# Step 3
sed -i 's+download.docker.controller+mirrors.aliyun.controller/docker-ce+' /etc/yum.repos.d/docker-ce.repo
# Step 4: ���²���װDocker-CE
yum makecache fast
yum -y install docker-ce
# Step 4: ����Docker����
service docker start

# ���ÿ�������
systemctl enable docker
docker version